<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.5"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>VectSharp: VectSharp.MuPDFUtils.PDFParser Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="Doxy.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectlogo"><img alt="Logo" src="icon.svg"/></td>
  <td id="projectalign">
   <div id="projectname">VectSharp<span id="projectnumber">&#160;2.6.1</span>
   </div>
   <div id="projectbrief">A light library for C# vector graphics</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.5 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function(){initNavTree('class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">Loading...</div>
<div class="SRStatus" id="Searching">Searching...</div>
<div class="SRStatus" id="NoMatches">No Matches</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser-members.html">List of all members</a>  </div>
  <div class="headertitle"><div class="title">VectSharp.MuPDFUtils.PDFParser Class Reference</div></div>
</div><!--header-->
<div class="contents">

<p>Contains methods to import <a class="el" href="namespace_vect_sharp_1_1_p_d_f.html">PDF</a> documents as vectors.   
 <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-static-methods" name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:aca1cef81304478d00aac21efc75da17e"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#aca1cef81304478d00aac21efc75da17e">FromFile</a> (string fileName, int pageNumber, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:aca1cef81304478d00aac21efc75da17e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import the specified page from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#aca1cef81304478d00aac21efc75da17e">More...</a><br /></td></tr>
<tr class="separator:aca1cef81304478d00aac21efc75da17e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a62ebf9aa77eb2e6c4e78f0d1aabef994"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#a62ebf9aa77eb2e6c4e78f0d1aabef994">FromFile</a> (string fileName, int pageNumber, out Dictionary&lt; string, string &gt; linkDestinations, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:a62ebf9aa77eb2e6c4e78f0d1aabef994"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import the specified page from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#a62ebf9aa77eb2e6c4e78f0d1aabef994">More...</a><br /></td></tr>
<tr class="separator:a62ebf9aa77eb2e6c4e78f0d1aabef994"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ccad5a8faf80a72da4a13144f5ee36f"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#a7ccad5a8faf80a72da4a13144f5ee36f">FromStream</a> (Stream stream, int pageNumber, InputFileTypes fileType=InputFileTypes.PDF, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:a7ccad5a8faf80a72da4a13144f5ee36f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import the specified page from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#a7ccad5a8faf80a72da4a13144f5ee36f">More...</a><br /></td></tr>
<tr class="separator:a7ccad5a8faf80a72da4a13144f5ee36f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aeb073ac1cb1c9ec14a12cde1277dc1b6"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#aeb073ac1cb1c9ec14a12cde1277dc1b6">FromStream</a> (Stream stream, int pageNumber, out Dictionary&lt; string, string &gt; linkDestinations, InputFileTypes fileType=InputFileTypes.PDF, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:aeb073ac1cb1c9ec14a12cde1277dc1b6"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import the specified page from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#aeb073ac1cb1c9ec14a12cde1277dc1b6">More...</a><br /></td></tr>
<tr class="separator:aeb073ac1cb1c9ec14a12cde1277dc1b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae6fc50612ce9542c9011e7e28fc88d78"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#ae6fc50612ce9542c9011e7e28fc88d78">FromFile</a> (string fileName, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:ae6fc50612ce9542c9011e7e28fc88d78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import all pages from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#ae6fc50612ce9542c9011e7e28fc88d78">More...</a><br /></td></tr>
<tr class="separator:ae6fc50612ce9542c9011e7e28fc88d78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a573b2ab832a36323aedeb25a5bbd477d"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#a573b2ab832a36323aedeb25a5bbd477d">FromFile</a> (string fileName, out Dictionary&lt; string, string &gt; linkDestinations, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:a573b2ab832a36323aedeb25a5bbd477d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import all pages from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#a573b2ab832a36323aedeb25a5bbd477d">More...</a><br /></td></tr>
<tr class="separator:a573b2ab832a36323aedeb25a5bbd477d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac282812cffd78f8c0aeca0007084ae83"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#ac282812cffd78f8c0aeca0007084ae83">FromStream</a> (Stream stream, InputFileTypes fileType=InputFileTypes.PDF, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:ac282812cffd78f8c0aeca0007084ae83"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import all pages from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#ac282812cffd78f8c0aeca0007084ae83">More...</a><br /></td></tr>
<tr class="separator:ac282812cffd78f8c0aeca0007084ae83"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af9e0fd8b9c855c451d3c03a53ba3eb8c"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#af9e0fd8b9c855c451d3c03a53ba3eb8c">FromStream</a> (Stream stream, out Dictionary&lt; string, string &gt; linkDestinations, InputFileTypes fileType=InputFileTypes.PDF, SVGCreationOptions.TextOption textOption=SVGCreationOptions.TextOption.TextAsPath, bool includeAnnotations=true)</td></tr>
<tr class="memdesc:af9e0fd8b9c855c451d3c03a53ba3eb8c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Import all pages from a document.   <a href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html#af9e0fd8b9c855c451d3c03a53ba3eb8c">More...</a><br /></td></tr>
<tr class="separator:af9e0fd8b9c855c451d3c03a53ba3eb8c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p >Contains methods to import <a class="el" href="namespace_vect_sharp_1_1_p_d_f.html">PDF</a> documents as vectors.  </p>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00029">29</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a62ebf9aa77eb2e6c4e78f0d1aabef994" name="a62ebf9aa77eb2e6c4e78f0d1aabef994"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a62ebf9aa77eb2e6c4e78f0d1aabef994">&#9670;&#160;</a></span>FromFile() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> VectSharp.MuPDFUtils.PDFParser.FromFile </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pageNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Dictionary&lt; string, string &gt;&#160;</td>
          <td class="paramname"><em>linkDestinations</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import the specified page from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The path to the document file.</td></tr>
    <tr><td class="paramname">pageNumber</td><td>The page number (starting at 0).</td></tr>
    <tr><td class="paramname">linkDestinations</td><td>When this method returns, this variable will contain a dictionary used to associate graphic action tags to hyperlinks. This can be used to enable such links when rendering the <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to a file.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> containing a representation of the specified page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00185">185</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="aca1cef81304478d00aac21efc75da17e" name="aca1cef81304478d00aac21efc75da17e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aca1cef81304478d00aac21efc75da17e">&#9670;&#160;</a></span>FromFile() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> VectSharp.MuPDFUtils.PDFParser.FromFile </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pageNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import the specified page from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The path to the document file.</td></tr>
    <tr><td class="paramname">pageNumber</td><td>The page number (starting at 0).</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> containing a representation of the specified page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00165">165</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="a573b2ab832a36323aedeb25a5bbd477d" name="a573b2ab832a36323aedeb25a5bbd477d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a573b2ab832a36323aedeb25a5bbd477d">&#9670;&#160;</a></span>FromFile() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a> VectSharp.MuPDFUtils.PDFParser.FromFile </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Dictionary&lt; string, string &gt;&#160;</td>
          <td class="paramname"><em>linkDestinations</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import all pages from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The path to the document file.</td></tr>
    <tr><td class="paramname">linkDestinations</td><td>When this method returns, this variable will contain a dictionary used to associate graphic action tags to hyperlinks. This can be used to enable such links when rendering the <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to a file.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_document.html" title="Represents a collection of pages.">Document</a> containing a representation of every page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00282">282</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="ae6fc50612ce9542c9011e7e28fc88d78" name="ae6fc50612ce9542c9011e7e28fc88d78"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae6fc50612ce9542c9011e7e28fc88d78">&#9670;&#160;</a></span>FromFile() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a> VectSharp.MuPDFUtils.PDFParser.FromFile </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>fileName</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import all pages from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">fileName</td><td>The path to the document file.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_document.html" title="Represents a collection of pages.">Document</a> containing a representation of every page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00256">256</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="ac282812cffd78f8c0aeca0007084ae83" name="ac282812cffd78f8c0aeca0007084ae83"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac282812cffd78f8c0aeca0007084ae83">&#9670;&#160;</a></span>FromStream() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a> VectSharp.MuPDFUtils.PDFParser.FromStream </td>
          <td>(</td>
          <td class="paramtype">Stream&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputFileTypes&#160;</td>
          <td class="paramname"><em>fileType</em> = <code>InputFileTypes.PDF</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import all pages from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The Stream containing the document to import.</td></tr>
    <tr><td class="paramname">fileType</td><td>The type of document contained in the Stream.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_document.html" title="Represents a collection of pages.">Document</a> containing a representation of every page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00312">312</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="a7ccad5a8faf80a72da4a13144f5ee36f" name="a7ccad5a8faf80a72da4a13144f5ee36f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7ccad5a8faf80a72da4a13144f5ee36f">&#9670;&#160;</a></span>FromStream() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> VectSharp.MuPDFUtils.PDFParser.FromStream </td>
          <td>(</td>
          <td class="paramtype">Stream&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pageNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputFileTypes&#160;</td>
          <td class="paramname"><em>fileType</em> = <code>InputFileTypes.PDF</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import the specified page from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The Stream containing the document to import.</td></tr>
    <tr><td class="paramname">pageNumber</td><td>The page number (starting at 0).</td></tr>
    <tr><td class="paramname">fileType</td><td>The type of document contained in the Stream.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> containing a representation of the specified page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00208">208</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="aeb073ac1cb1c9ec14a12cde1277dc1b6" name="aeb073ac1cb1c9ec14a12cde1277dc1b6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aeb073ac1cb1c9ec14a12cde1277dc1b6">&#9670;&#160;</a></span>FromStream() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_page.html">Page</a> VectSharp.MuPDFUtils.PDFParser.FromStream </td>
          <td>(</td>
          <td class="paramtype">Stream&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>pageNumber</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Dictionary&lt; string, string &gt;&#160;</td>
          <td class="paramname"><em>linkDestinations</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputFileTypes&#160;</td>
          <td class="paramname"><em>fileType</em> = <code>InputFileTypes.PDF</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import the specified page from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The Stream containing the document to import.</td></tr>
    <tr><td class="paramname">pageNumber</td><td>The page number (starting at 0).</td></tr>
    <tr><td class="paramname">linkDestinations</td><td>When this method returns, this variable will contain a dictionary used to associate graphic action tags to hyperlinks. This can be used to enable such links when rendering the <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to a file.</td></tr>
    <tr><td class="paramname">fileType</td><td>The type of document contained in the Stream.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> containing a representation of the specified page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00232">232</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<a id="af9e0fd8b9c855c451d3c03a53ba3eb8c" name="af9e0fd8b9c855c451d3c03a53ba3eb8c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9e0fd8b9c855c451d3c03a53ba3eb8c">&#9670;&#160;</a></span>FromStream() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="class_vect_sharp_1_1_document.html">Document</a> VectSharp.MuPDFUtils.PDFParser.FromStream </td>
          <td>(</td>
          <td class="paramtype">Stream&#160;</td>
          <td class="paramname"><em>stream</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">out Dictionary&lt; string, string &gt;&#160;</td>
          <td class="paramname"><em>linkDestinations</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">InputFileTypes&#160;</td>
          <td class="paramname"><em>fileType</em> = <code>InputFileTypes.PDF</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">SVGCreationOptions.TextOption&#160;</td>
          <td class="paramname"><em>textOption</em> = <code>SVGCreationOptions.TextOption.TextAsPath</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>includeAnnotations</em> = <code>true</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Import all pages from a document.  </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">stream</td><td>The Stream containing the document to import.</td></tr>
    <tr><td class="paramname">linkDestinations</td><td>When this method returns, this variable will contain a dictionary used to associate graphic action tags to hyperlinks. This can be used to enable such links when rendering the <a class="el" href="class_vect_sharp_1_1_page.html" title="Represents a Graphics object with a width and height.">Page</a> to a file.</td></tr>
    <tr><td class="paramname">fileType</td><td>The type of document contained in the Stream.</td></tr>
    <tr><td class="paramname">textOption</td><td>This parameter determines whether text elements are rendered as paths (which provides more accurate results) or as text.</td></tr>
    <tr><td class="paramname">includeAnnotations</td><td>Whether annotations (e.g., signatures) should be included in the imported document.</td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>A <a class="el" href="class_vect_sharp_1_1_document.html" title="Represents a collection of pages.">Document</a> containing a representation of every page from the document.</dd></dl>

<p class="definition">Definition at line <a class="el" href="_p_d_f_parser_8cs_source.html#l00342">342</a> of file <a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>VectSharp.MuPDFUtils/<a class="el" href="_p_d_f_parser_8cs_source.html">PDFParser.cs</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespace_vect_sharp.html">VectSharp</a></li><li class="navelem"><a class="el" href="namespace_vect_sharp_1_1_mu_p_d_f_utils.html">MuPDFUtils</a></li><li class="navelem"><a class="el" href="class_vect_sharp_1_1_mu_p_d_f_utils_1_1_p_d_f_parser.html">PDFParser</a></li>
    <li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.5 </li>
  </ul>
</div>
</body>
</html>
